<%--
  Created by IntelliJ IDEA.
  User: 吕旺平
  Date: 2019/12/3
  Time: 23:41
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://fentsoul.com" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<head>
	<title>购物车</title>
	<c:import url="/layout/_imports.jsp"></c:import>
</head>
<body>
<c:import url="/layout/_nav.jsp"></c:import>

<!--cart-items-->
<div class="cart-items">
	<div class="container">



		<h2 id="cart_sym">我的购物车</h2>

		<f:foreach jsp_for="ois" var="o">
			<div class="cart-header col-md-6">
				<div class="cart-sec simpleCart_shelfItem">
					<div class="cart-item cyc">
						<a href="/goods/detail/${o.goodsid}">
							<img src="${o.goods.cover}" class="img-responsive">
						</a>
					</div>
					<div class="cart-item-info">
						<h3><a href="/goods/detail/${o.goodsid}">${o.goods.name}</a></h3>
						<h3><span>单价: ¥ ${o.goods.price}</span></h3>
						<h3><span>数量: ${o.amount}</span></h3>
						<a class="btn btn-info" href="javascript:buy(${o.goodsid});">增加</a>
						<a class="btn btn-warning" href="javascript:lessen(${o.goodsid});">减少</a>
						<a class="btn btn-danger" href="javascript:deletes(${o.goodsid});">删除</a>
					</div>
					<div class="clearfix"></div>
				</div>
			</div>
		</f:foreach>

		<div class="cart-header col-md-12">
			<hr>
			<h3>订单总金额: ¥ ${Model.price}</h3>
			<f:a method="pay" jsp_class='class="btn btn-success btn-lg" style="margin-left:74%"'>提交订单</f:a>
			<%--<a class="btn btn-success btn-lg" style="margin-left:74%" href="save.action">提交订单</a>--%>
		</div>



	</div>
</div>
<!--//cart-items-->

<c:import url="/layout/_footer.jsp"></c:import>
</body>
</html>
